﻿
using System.Reflection;
using System.Runtime.InteropServices;

namespace SUNRPA.CONTROLS.IMPL.domain.flowRunningVar {
    public class VarTreeNode {
        private string displayName;
        private MemberInfo reflectMem;
        private string expression;
        private string key;
        private List<VarTreeNode> subNodes = new List<VarTreeNode>();

        public VarTreeNode(string displayName, MemberInfo reflectMem, string key, [Optional]string expression) {
            DisplayName = displayName;
            ReflectMem = reflectMem;
            Expression = expression;
            Key = key;
        }

        public string DisplayName { get => displayName; set => displayName = value; }
        public MemberInfo ReflectMem { get => reflectMem; set => reflectMem = value; }
        public List<VarTreeNode> SubNodes { get => subNodes; set => subNodes = value; }
        public string Expression { get => expression; set => expression = value; }
        public string Key { get => key; set => key = value; }
    }
}
